package com.xiao.service;

import com.xiao.dao.UserMapper;
import com.xiao.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


public class UserServiceImpl implements UserService{

    private UserMapper userMapper;
   public void setUserMapper(UserMapper userMapper) {
       this.userMapper=userMapper;
   }
    public User selectUserByUserName(String username) {
        return userMapper.selectUserByUserName(username) ;
    }
}
